#ifndef HEARTLOGICCONTROLSTRUCT_H
#define HEARTLOGICCONTROLSTRUCT_H

#include <QObject>
#include "ControlPointStruct.h"

class HeatLogicControlStruct
{
public:
    HeatLogicControlStruct();

    bool isOpen() const;
    void setIsOpen(bool isOpen);

    quint16 curTempAddress() const;
    void setCurTempAddress(const quint16 &curTempAddress);

    ControlPointStruct closePoint() const;
    void setClosePoint(const ControlPointStruct &closePoint);

    ControlPointStruct openPoint() const;
    void setOpenPoint(const ControlPointStruct &openPoint);

    ControlPointStruct greaterPoint() const;
    void setGreaterPoint(const ControlPointStruct &greaterPoint);

    ControlPointStruct lessPoint() const;
    void setLessPoint(const ControlPointStruct &lessPoint);

    quint16 setTempAddress() const;
    void setSetTempAddress(const quint16 &setTempAddress);

    quint16 setTempValue() const;
    void setSetTempValue(const quint16 &setTempValue);

    quint16 errorRange() const;
    void setErrorRange(const quint16 &errorRange);

    quint16 getCurTempdata();
    void setCurTempdata(quint16 data);

    quint8 getSWStata();
    void setSWStata(quint8 stata);

    QString getMaxerrorRange();
    void setMaxerrorRange(QString data);
    QString getMinerrorRange();
    void setMinerrorRange(QString data);
private:
    bool m_isOpen;
    quint16 m_curTempAddress;
    ControlPointStruct m_closePoint;
    ControlPointStruct m_openPoint;
    ControlPointStruct m_greaterPoint;
    ControlPointStruct m_lessPoint;

    quint16 m_setTempAddress;
    quint16 m_setTempValue;
    quint16 m_errorRange;
    quint16 m_curTempdata;
    quint8 m_SWStata;
    QString m_MaxerrorRange;
    QString m_MinerrorRange;

};

#endif // HEARTLOGICCONTROLSTRUCT_H
